<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>修改账目</title>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.STYLE1 {
	font-size: 12px
}

.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {
	color: #03515d;
	font-size: 12px;
}

.td_bg {
	font-size: 13px;
	background: #fff;
	border: 1px solid #6495ED;
}

/*表单项的字体格式*/
.td_x_bg {
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	background: #BDE3FB;
	height: 40px;
	border: 1px solid #6495ED;
}

.table {
	margin-top: 10px;
}
input {

}
-->
</style>
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/checkUtil.js"></script>
		<script type="text/javascript" src="js/WebCalendar.js"></script>

	</head>

	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="images/main/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="images/main/tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="images/main/tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">你当前的位置</span>：
															[团队账目]-[修改账目]
													</td>
												</tr>
											</table>
										</td>
										<td width="54%">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="80">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td>
																	&nbsp;
																</td>
															</tr>
														</table>
													</td>
													<td width="60">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td class="STYLE1">
																	<br>
																</td>
																<td class="STYLE1">
																	<br>
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="images/main/tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="8" background="images/main/tab_12.gif">
								&nbsp;
							</td>
							<td>
								<s:if test="%{#addwrong == 0}">
									<script language = "javascript">
								         alert("修改账目失败！");
								    </script>
								</s:if>
								
								<form action="front/modifyAccout.action" method="post" onsubmit="return checkAccountForm();">
									<table class="table" border="1" width="50%" align="center"
										cellpadding="2" cellspacing="2" bordercolor="#6495ED">
										<tbody>

											<tr>

												<td class="td_x_bg" width="120px">
													<nobr>
														使用类型
													</nobr>
												</td>
												<td class="td_bg" >
													<nobr>
														<input type="radio" name="account.useType" id="useType" value="0" <s:if test="account.useType == '支出'" >checked="checked"</s:if> />支出
														<input type="radio" name="account.useType" id="useType" value="1" <s:if test="account.useType == '收入'" >checked="checked"</s:if> />收入
													</nobr>
												</td>
												<td class="td_x_bg" width="110px">
													<nobr>
														使用时间
													</nobr>
												</td>
												<td class="td_bg">
													<nobr>
														<input type="text" name="account.useTime" id="useTime" value="<s:date name="account.useTime" format="yyyy-MM-dd" nice="false"/>" 
														onclick="SelectDate(this,'yyyy-MM-dd')" readonly="true" style="width:80px;cursor:pointer;border:none"/>
													</nobr>
												</td>
											</tr>
											
											<tr>
												<td class="td_x_bg" width="120px">
													<nobr>
														金额数(元)
													</nobr>
												</td>
												<td class="td_bg" colspan="3">
													<nobr>
														<input type="text" name="account.moneyQuantity" id="moneyQuantity" value="<s:property value="account.moneyQuantity" />"/>
														输入金额数格式为XXX<font style="font-size:20px;font-weight:bold">.</font>XX
													</nobr>
												</td>
												
											</tr>
											
											<tr>
												<td class="td_x_bg" width="120px" valign="top" style="padding-top:10px;" >
													<nobr>
														说明
													</nobr>
												</td>
												<td class="td_bg" colspan="3">
													<input type="hidden" name="account.description" value="<s:property value="account.description" />">
													<script src="/ztmStruts2/FCKeditor/fckeditor.js" ></script>
													<script>
											            var editor = new FCKeditor('account.description');
											            editor.BasePath = '/ztmStruts2/FCKeditor/';
											            editor.Height = 200;
											            editor.Width = 500;
											            editor.ToolbarSet = 'answer';
											            editor.Create();
											         </script>
												</td>
											</tr>
											<tr>
												<td class="td_bg" colspan="4" align="center">
													<input type="hidden" name="account.id" value="<s:property value="account.id"/> ">
													<input type="submit" value="修改" style="width:80px;height:40px;"  />
												</td>
											</tr>
										</tbody>
									</table>
									</form>
							</td>
							<td width="8" background="images/main/tab_15.gif">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="35" background="images/main/tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="35">
								<img src="images/main/tab_18.gif" width="12" height="35" />
							</td>
							<td>
								<form action="" method="get">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td>
												&nbsp;
											</td>
										</tr>
									</table>
								</form>
							</td>
							<td width="16">
								<img src="images/main/tab_20.gif" width="16" height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
